PreviousTracker indexSee it online !

(277/277) 1826 - ctagsinterface 2.8.0 can not start (luceneplugin 4.2 installed )

ctagsinterface 2.8.0 can not start with luceneplugin 4.2 installed.

Submitted pi1ot - 2015-11-05 09:18:17.481000 Assigned
Priority 5 Labels
Status open Group None
Resolution None

Comments

2015-11-05 09:19:12.421000
pi1ot

plugin list

%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202015-11-05%2017.04.47.png (170.3Kio)

2015-11-05 13:40:14.737000
grepppo

I hate to sound like the IT Crowd, but have you tried turning it off and on again ?

Seriously, the latest version of the Lucene plugin has upgraded to Lucene v5.1 which has some API differences with the old version the plugin used.

The latest version of ctags plugin also uses Lucene and it have been upgraded to work with Lucene v5.1.

Also I had the same issue when I did the upgrade, and restarting jEdit worked for me. I suspect the classloader still had the old version of the Lucene library lying around, and restarting meant that the right version of Lucene was loaded.

If you still see the issue, can you please post the errors from the activity log

2015-11-05 13:47:11.424000
pi1ot

Yes, but still same error.

21:43:36 [main] [error] PluginJAR: Error while starting plugin ctagsinterface.main.CtagsInterfacePlugin
21:43:36 [main] [error] PluginJAR: java.lang.IllegalArgumentException: Could not load codec 'Lucene42'. Did you forget to add lucene-backward-codecs.jar?
21:43:36 [main] [error] PluginJAR: at org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:433)
21:43:36 [main] [error] PluginJAR: at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:325)
21:43:36 [main] [error] PluginJAR: at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:830)
21:43:36 [main] [error] PluginJAR: at ctagsinterface.index.TagIndex.<init>(TagIndex.java:149)
21:43:36 [main] [error] PluginJAR: at ctagsinterface.main.CtagsInterfacePlugin.start(CtagsInterfacePlugin.java:79)
21:43:36 [main] [error] PluginJAR: at org.gjt.sp.jedit.PluginJAR.startPlugin(PluginJAR.java:1740)
21:43:36 [main] [error] PluginJAR: at org.gjt.sp.jedit.PluginJAR.activatePlugin(PluginJAR.java:951)
21:43:36 [main] [error] PluginJAR: at org.gjt.sp.jedit.PluginJAR.activatePluginIfNecessary(PluginJAR.java:1021)
21:43:36 [main] [error] PluginJAR: at org.gjt.sp.jedit.jEdit.main(jEdit.java:549)
21:43:36 [main] [error] PluginJAR: Caused by: java.lang.IllegalArgumentException: An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene42' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [Lucene50]
21:43:36 [main] [error] PluginJAR: at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:109)
21:43:36 [main] [error] PluginJAR: at org.apache.lucene.codecs.Codec.forName(Codec.java:98)
21:43:36 [main] [error] PluginJAR: at org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:423)
21:43:36 [main] [error] PluginJAR: ... 8 more
21:43:36 [main] [error] ErrorListDialog$ErrorEntry: /Users/pi1ot/Library/jEdit/jars/CtagsInterface.jar:
21:43:36 [main] [error] ErrorListDialog$ErrorEntry: Cannot start: java.lang.IllegalArgumentException: Could not load codec 'Lucene42'. Did you forget to add lucene-backward-codecs.jar?
21:43:36 [main] [error] ErrorListDialog$ErrorEntry: Try updating to a newer version of the plugin.

2015-11-06 20:37:45.124000
ezust

Perhaps you have some old .jar files left over from a previous lucene install?
Go to plugin manager - find orphan and see if you can clean up any old JARs that way.